package main

import (
	"post-master/cache"
	"post-master/config"
	"post-master/model"
	"post-master/router"
)

func main() {
	//链接配置文件
	config.Init()
	//连接数据库
	model.Init()
	//连接 Redis
	cache.Init()
	// 1.创建路由
	r := router.Router()
	r.Run(":8000")
}
